//app.js
App({
  data: {
    // // ipconfig:'https://zws.dckeji.cn',
    // ipconfig: 'http://118.89.196.67:8080/WebsiteModel/',
    // // appid: 'wx0a99816461803292'
    // appid: 'wxed8511dbef84ac24',//嘿怕,
    // ipconfig:'https://zws.dckeji.cn',
    ipconfig: 'https://shops.dckeji.cn',
    // appid: 'wx0a99816461803292'
    appid: 'wxed8511dbef84ac24',//嘿怕
    shopsNo:'060318221371499',
    btnList:[],
    anlietype_id:"",

    
  },
  onLaunch: function () {
    var that = this;
    wx.request({
      url: that.data.ipconfig + 'homeapi/showCaseType',

      data: { shopsNo: that.data.shopsNo },
      header: {
        'content-type': 'application/json'
      },
      success: function (res) {


        console.log(res);
        that.data.btnList = res.data.res
        that.data.detail = res.data.res[0]

        that.data.anlietype_id = res.data.res[0].anlietype_id;

      },
      fail: function () {
        console.log("接口出现异常");
      }
    })
    

  },
  onShareAppMessage: function () {
    return {
      title: '家政服务',
      path: 'pages/Category/Category'
    }
  },

 
  globalData: {
    userInfo: null
  }
})
